package 尚硅谷;

/**
 * @author zhangmin
 * @create 2022-03-25 22:34
 * 强引用
 */
public class StrongReferenceDemo {
    public static void main(String[] args) {
        Object o1=new Object();
        Object o2=o1;
        o1=null;
        System.gc();
        System.out.println(o1);
        System.out.println(o2);
    }
}
